package com.bocai.mapper;

import com.bocai.bean.CustomEvent;

import java.util.List;

public interface CustomEventMapper {
    int deleteByPrimaryKey(Integer eventId);

    int insert(CustomEvent record);

    int insertSelective(CustomEvent record);

    CustomEvent selectByPrimaryKey(Integer eventId);

    /**
     * 查询三小时之内到以后的比赛
     * @param customEvent
     * @return
     */
    List<CustomEvent> selectHotEvents(CustomEvent customEvent);

    int updateByPrimaryKeySelective(CustomEvent record);

    int updateByPrimaryKey(CustomEvent record);

    int updateEventStatus(CustomEvent event);

}